home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / c / pro19 / ispunct.c < prev    next >
Text File  |  1987-10-04  |  256b  |  9 lines

  1. #define NOCCARGC  /* no argument count passing */
  2. /*
  3. ** return 'true' if c is a punctuation character
  4. ** (all but control and alphanumeric)
  5. */
  6. ispunct(c) int c; {
  7.   return (!isalnum(c) && !iscntrl(c));
  8.   }
  9.